package cn.com.cym.gamezao.entity.xmu.recruit;

import cn.com.cym.gamezao.base.BaseEntity;
import cn.com.cym.gamezao.entity.authorize.User;
import cn.com.cym.gamezao.enums.ApplyStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@Table(name = "x_apply_log")
@Entity
@Accessors(chain = true)
@ApiModel(description = "申请")
public class ApplyLog extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 8493991971711165222L;

    @ManyToOne
    @JoinColumn(name = "user_apply_id")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private UserApply userApply;

    @ManyToOne
    @JoinColumn(name = "user_id")
    @JsonProperty(access = JsonProperty.Access.READ_WRITE)
    private User user;

    private ApplyStatus applyStatus;

    // 操作备注
    @Column(length = 200)
    private String notes;
}
